package org.example.myerp.controller;

import org.example.myerp.pojo.*;
import org.example.myerp.service.ProductFilesService;
import org.example.myerp.until.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * ��Ʒ��������Ƶ��������Ʋ㡿
 * @author DELL
 *
 *///
//@CrossOrigin(methods = { RequestMethod.POST, RequestMethod.GET }, allowCredentials = "true", allowedHeaders = "*")

@RestController
@RequestMapping("/design/productFiles")
public class ProductFilesController {
	@Autowired
    ProductFilesService productFilesService;

	/**
	 * �޸���˱�־Ϊ�����
	 * @param proInformation
	 * @param proInfoAsset
	 * @return
	 */
	@RequestMapping("/getUpdateProductFilesByPId")
	@ResponseBody
	public Integer getUpdateProductFilesByPId(ProInformation proInformation, ProInfoAsset proInfoAsset) {

	    Integer row = productFilesService.getUpdateProductFilesByPId(proInformation,proInfoAsset);
		return row;
	}


}
